package com.test.mylotterysystem.controller.Param;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.util.List;

@Data
public class ActivityCreateParam {
    @NotBlank(message = "活动名称不能为空")
    private String activityName;

    @NotBlank(message = "活动描述不能为空")
    private String description;

    @NotEmpty(message = "奖品列表不能为空")
    @Valid
    private List<ActivityCreatePrize> activityPrizeList;

    @NotEmpty(message = "人员列表不能为空")
    @Valid
    private List<ActivityCreateUser> activityUserList;
}
